<?php

include '../setup.php';

if (isset($_GET["oauth_token"])){
		$UserInformation->setToken($_GET["oauth_token"]);
		$token = $UserInformation->getAccessToken();
		$UserInformation->setToken($token->oauth_token,$token->oauth_token_secret);
		$UserInformation->oauth_token = $token->oauth_token;
		$UserInformation->oauth_token_secret = $token->oauth_token_secret;
		$response = $UserInformation->get_accountVerify_credentials();
		$UserInformation->saveUser($response);
		setcookie('t2puserid', $response->id); 
}?>

<script language="javascript" >
window.opener.location.reload();
window.close();</script>